// @actor: a descendant of the chrome to begin tracking
// @params: parameters describing how to track @actor
//
- // Tells the chrome to track @actor, which must be a descendant
- // of an actor added via addChrome(). This can be used to extend the
+ // Tells the chrome to track @actor. This can be used to extend the
// struts or input region to cover specific children.
//
// @params can have any of the same values as in addChrome(),
ancestor = ancestor.get_parent();
index = this._findActor(ancestor);
}
- if (!ancestor)
- throw new Error('actor is not a descendent of a chrome actor');
- let ancestorData = this._trackedActors[index];
+ let ancestorData = ancestor ? this._trackedActors[index]
+ : defaultParams;
if (!params)
params = {};
// We can't use Params.parse here because we want to drop